﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="login.aspx.cs" Inherits="login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<script type="text/javascript" language="javascript">
	function reset() {
		document.getElementById("txtUserId").value = "";
		document.getElementById("txtCode").value = "";
		document.getElementById("txtUserPwd").value = "";
	}

	//以弹出方式打开另一窗口，同时隐藏浏览器工具栏等
	//董辉 2011-4-8 19:39
	function WindowOpen() {
         
		//JS正则表达式
		var reWork = new RegExp('object', 'gi');

		objChild = window.open('PageControl/Center.aspx', '', 'menubar=no,toolbars=no,location=no,directories=no,scrollbars=yes,status=no,resizable=yes');

		window.opener = null;

		window.open('', '_self');

		window.close();

		if (reWork.test(String(objChild)) == false) {
			alert('您的IE设置了弹出窗口屏蔽功能，请通过IE设置允许本系统弹出窗口。\n\n设置步骤:IE菜单栏的“工具”---“弹出窗口阻止程序”---点击“关闭弹出窗口阻止程序”');
		}
	}

</script>

<head runat="server">
	<title>体外诊断试剂监管系统</title>
	<style type="text/css">
		html, body {
			position: absolute;
			padding: 0px;
			margin: 0px;
			left: 0px;
			top: 0px;
			min-width: 760px;
			width: 100%;
			height: 100%;
			min-height: 600px;
			background: url(./lib/images/containerbg.jpg);
			background-size: cover;
		}

		.topTitle {
			margin: 0px;
			padding: 0px;
			text-align: center;
			font-family: "Microsoft YaHei";
			font-size: 48px;
			color: #fff;
			line-height: 160px;
			letter-spacing: 5px;
		}



		.container {
			width: 100%;
			height: 340px;
			background-color: #efefef;
		}

		.inputBg {
			width: 760px;
			margin: 0 auto;
		}

		.leftbg {
			float: left;
			width: 362px;
			height: 292px;
			background: url(./lib/images/leftbg.jpg);
			margin-top: 25px;
		}

		.line {
			float: left;
			width: 2px;
			height: 306px;
			margin-top: 20px;
			margin-left: 30px;
			background: url(./lib/images/line.png);
		}

		.inputArea {
			float: right;
			width: 330px;
			height: 290px;
			margin-top: 70px;
		}

		.userlogin {
			font-size: 25px;
			color: #00587d;
			font-family: "Microsoft YaHei";
			line-height: 70px;
			text-align: center;
		}

		.input {
			float: left;
			margin-top: 0px;
		}

		.inputImg {
			padding-left: 35px;
		}

		.inputBox {
			font-size: 12px;
			color: #a9a9a9;
			width: 285px;
			padding: 8px;
			border: 1px solid;
			border-color: #c6c9c9 #dbdfe6 #dbdfe6;
			margin-bottom: 25px;
			background-color: #fff;
		}


		#Img {
			width: 90px;
			height: 30px;
			float: right;
			margin-right: 30px;
		}

		.infoText {
			color: #000;
			font-size: 12px;
			border: 0;
		}

		.button {
			float: left;
			width: 100%;
		}

		.loadButton {
			float: left;
			text-decoration: none;
			width: 145px;
			height: 30px;
			line-height: 30px;
			font-size: 16px;
			text-align: center;
			color: #fff;
			font-family: "黑体";
			background-color: #397dc6;
			border: 0;
			cursor: pointer;
			margin-right: 10px;
			border: 0;
		}

		.jianguanButton {
			float: left;
			text-decoration: none;
			width: 100px;
			height: 28px;
			line-height: 28px;
			font-size: 16px;
			text-align: center;
			color: #fff;
			font-family: "黑体";
			background-color: #397dc6;
			border: 0;
			cursor: pointer;
			margin-right: 10px;
			border: 0;
		}

		.resButton {
			float: left;
			text-decoration: none;
			width: 145px;
			height: 30px;
			line-height: 30px;
			font-size: 16px;
			text-align: center;
			color: #fff;
			font-family: "黑体";
			background-color: #d14b39;
			border: 0;
			cursor: pointer;
		}

		.footer {
			position: absolute;
			width: 100%;
			bottom: 10px;
			text-align: center;
			font-size: 12px;
			color: #fff;
			line-height: 18px;
			letter-spacing: 2px;
		}
	</style>

	<script src="Scripts/jquery.js" type="text/javascript"></script>

	<script type="text/javascript" language="javascript">
		if (parent.length > 0) {
			try {
				parent.location.replace(location.href);
			}
			catch (e)
			{ }
		}
	
		function getip() {
		    try {
		        document.getElementById("hfip").value = returnCitySN.cip; //外网ip  
		    }
		    catch (e) {
		    }
		}
    </script>
    <script type="text/javascript" src="http://pv.sohu.com/cityjson?ie=utf-8" charset="utf-8"></script>

</head>
<body onload="getip()">
	<form id="form1" runat="server">
		<div class="topTitle">体外诊断试剂监管系统</div>
		<div style="width: 100%; height: 340px; background-color: rgba(232,237,243,0.3); padding: 10px 0">
			<div class="container">
				<div class="inputBg">
					<div class="leftbg"></div>
					<div class="line"></div>
					<div class="inputArea">
						<div class="input">
							<asp:TextBox ID="txtUserId" runat="server" CssClass="inputBox" MaxLength="15"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUserId"
								ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>

							<asp:TextBox ID="txtUserPwd" runat="server" CssClass="inputBox" TextMode="Password"
								MaxLength="15" autocomplete="off"></asp:TextBox>
							<div id="divTip" style="display: none; color: Red">大写锁定键被按下，请注意大小写</div>

							<asp:TextBox ID="txtCode" AutoCompleteType="Disabled" runat="server" CssClass="inputBox"
								MaxLength="4" Width="180"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCode"
								ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
							<img alt="看不清？单击重新获取验证码" id="Img" title="看不清？单击重新获取验证码" style="border: 1px solid #c6c9c9; vertical-align: bottom; cursor: pointer;" />
						</div>
						<div class="button">
							<div>
								<hz:HzButton ID="btnLogin" CssClass="loadButton" runat="server" Text="登录" OnClick="btnLogin_Click" /></div>
							<div>
								<input type="reset" value="清空" class="resButton" /></div>
                                <asp:HiddenField ID="hfip" runat="server"/>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="footer">
			版权所有：四川省药械集中采购服务中心
      
			<%--技术支持：北京华招易联信息技术有限公司--%>
		</div>

		<script type="text/javascript">
			var Init = function () {
				var changecode = function () {
					$("#Img").attr("src", "Common/Code.aspx?" + Math.random());
				}

				$("#Img").click(changecode);
				changecode();
			}
			$().ready(function () { Init(); });
	</script>
	</form>
</body>
</html>
